from typing import Union

from app.schemas.common import DateTimeModelMixin


class Points(DateTimeModelMixin):
    title: str
    price: float
    points: int

    class Config:
        orm_mode = True


class Record(DateTimeModelMixin):
    uid: Union[int, None]
    pid: int
    price: Union[float, None]
    points: Union[int, None]

    class Config:
        orm_mode = True
